import json

from config import base_path

   # 定于读取json数据文件get_json,参数为文件的名称,返回列表套元祖测试数据
def get_json(file_name):

    my_list=[]
    with open(base_path+f"/data/{file_name}","r",encoding="utf-8") as f:
        data1=json.load(f)
        for dict1 in data1:
            list1=dict1.values()
            tup1=tuple(list1)
            my_list.append(tup1)
    return my_list
